package me.helllp.dake.iam.core.convert;

import me.helllp.dake.iam.core.bo.AccountBo;
import me.helllp.dake.iam.core.po.DakeAccount;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * 应用的结构转换器
 */
@Mapper(componentModel = "spring")
public interface AccountConvert {
    AccountConvert INSTANCE = Mappers.getMapper(AccountConvert.class);

    AccountBo toAccountBo(DakeAccount account);

    DakeAccount toAccount(AccountBo bo);
}
